package cn.anlab.anappframe.widget;

import java.util.List;
import java.util.Map;

import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListView;
import cn.anlab.anappframe.demo.adapter.ListViewAdapter;
/**
 * 列表选择对话框
 * 
 * @version 1.0
 * @author Stan Rong 2012-3-3
 */
public class CompListDialog extends CompDialog {
	
	private ListView listView;
	private ListViewAdapter adapter;
	
	public CompListDialog(Context context, List<Map<String, String>> dataList, String textKey) {
		super(context);
		listView = new ListView(context);
		adapter = new ListViewAdapter(context, dataList, textKey);
		listView.setOnItemClickListener(rowClickListener);
	}
	
	private AdapterView.OnItemClickListener rowClickListener = new AdapterView.OnItemClickListener() {
		@Override
		public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
			List<Map<String, String>> dataList = adapter.getDataList();
			
		}
		
	};
	
	
	
	
	
	
	
	
	

}
